﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static Demo05.Student;

namespace Demo05
{
    class Student
    {
        public struct Student1
        {
            public string name;
            public int age;
            public string address;
            public char sex;  
        }
        public static string tether = "唐僧";
        public static void Test(string name,int age,char sex,string address,string tether)
        {
            Console.WriteLine("我的名字是：{0},我今年{1}岁，我是{2}的，我家在{3}，我的现任老师是{4}",name,age,sex,address,tether);
        }

    }
    
    class Program
    {
        static void Main(string[] args)
        {
            Student1 stu = new Student1();
            stu.name = "张三";
            stu.age = 20;
            stu.sex = '男';
            stu.address = "北京";

            Student1 stu1 = new Student1();
            stu1.name = "李四";
            stu1.age = 19;
            stu1.sex = '女';
            stu1.address = "桂林";

            Student1 stu2 = new Student1();
            stu2.name = "王五";
            stu2.age = 20;
            stu2.sex = '男';
            stu2.address = "贵州";

            Student1 stu3 = new Student1();
            stu3.name = "赵六";
            stu3.age = 21;
            stu3.sex = '男';
            stu3.address = "昆明";

            Student1 stu4 = new Student1();
            stu4.name = "钱七";
            stu4.age = 20;
            stu4.sex = '女';
            stu4.address = "上海";


            Test(stu.name, stu.age, stu.sex, stu.address, tether);
            Test(stu1.name, stu1.age, stu1.sex, stu1.address, tether);
            Test(stu2.name, stu2.age, stu2.sex, stu2.address, tether);
            Test(stu3.name, stu3.age, stu3.sex, stu3.address, tether);
            Test(stu4.name, stu4.age, stu4.sex, stu4.address, tether);

            Console.WriteLine("唐僧老师换嫦娥老师后");

            tether = "嫦娥";

            Test(stu.name, stu.age, stu.sex, stu.address, tether);
            Test(stu1.name, stu1.age, stu1.sex, stu1.address, tether);
            Test(stu2.name, stu2.age, stu2.sex, stu2.address, tether);
            Test(stu3.name, stu3.age, stu3.sex, stu3.address, tether);
            Test(stu4.name, stu4.age, stu4.sex, stu4.address, tether);

            Console.ReadLine();
        }
    }
}
